package com.zdkj.subway.st.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 财务对账模块
 *
 * @author chenbo
 * @date 2020-06-10 10:21:02
 */
@Data
@TableName("st_tk_financial_reconciliation")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "财务对账模块")
public class StTkFinancialReconciliation extends Model<StTkFinancialReconciliation> {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelIgnore
    @TableId
    @ApiModelProperty(value = "ID")
    private Integer id;
    /**
     * 结算开始时间
     */
    @ExcelProperty(value = "结算开始时间", index = 1)
    @ApiModelProperty(value = "结算开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate accountStartTime;
    /**
     * 结算结束时间
     */
    @ExcelProperty(value = "结算结束时间", index = 2)
    @ApiModelProperty(value = "结算结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate accountEndTime;
    /**
     * 操作类型
     */
    @ExcelProperty(value = "操作类型", index = 3)
    @ApiModelProperty(value = "操作类型")
    private String handleType;
    /**
     * 结算金额
     */
    @ExcelProperty(value = "结算金额", index = 4)
    @ApiModelProperty(value = "结算金额")
    private BigDecimal accountMoney;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDate createTime;
}
